package com.ruicar.afs.cloud.apply.admin.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruicar.afs.cloud.apply.admin.manage.entity.SysRole;
import com.ruicar.afs.cloud.apply.admin.manage.vo.SysRoleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: Lee
 * @date 2020-06-03 11:12:22
 * @description
 */
public interface ApplyRoleMapper extends BaseMapper<SysRole> {

    List<SysRole> findByUserName(@Param("userName") String userName);

    List<SysRoleVo> getUserRole(@Param("channelId") Long channelId);

}
